// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import echarts from 'echarts'
import { Overlay, Dialog, Toast, Empty,
form, Calendar, Field, Button, DatetimePicker, Popup } from 'vant'

Vue.config.productionTip = false

Vue.use(Overlay).use(Dialog).use(Toast).use(Empty).use(form).use(Calendar).use(Field).use(Button).use(DatetimePicker).use(Popup)

// 引入echarts
Vue.prototype.$echarts = echarts

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
